<?php
	
	$userId = $_GET['userID'];
	$deviceToken = $_GET['deviceToken'];
	
	$DSN = 'mysql:dbname=user;host=127.0.0.1;port=3306;charset=UTF8';
	$pdo = new PDO($DSN, 'root', '68097777!@#');

	$state = $pdo->prepare("INSERT INTO `users` VALUES(?, ?)");
	$state->bindValue(1, $userId, PDO::PARAM_STR);
	$state->bindValue(2, $deviceToken, PDO::PARAM_STR);
	if($state->execute()){
		exit(json_encode(['status' => true]));
	}else{
		exit(json_encode(['status' => false]));
	}
 ?>